package com.thinkgem.jeesite.modules.source.entity;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="imagecfg")
public class ImageCfg {
	private String autoPlay = "false";
	private String transitionEffect = "1";
	private String interval = "3000";
	private String toFloor = "false";
	List<Image> vc  = new ArrayList<Image>();

	@XmlElement(name = "auto_play")
	public String getAutoPlay() {
		return autoPlay;
	}
	public void setAutoPlay(String autoPlay) {
		this.autoPlay = autoPlay;
	}
	@XmlElement(name = "transition_effect")
	public String getTransitionEffect() {
		return transitionEffect;
	}
	public void setTransitionEffect(String transitionEffect) {
		this.transitionEffect = transitionEffect;
	}
	@XmlElement(name = "interval")
	public String getInterval() {
		return interval;
	}
	public void setInterval(String interval) {
		this.interval = interval;
	}
	@XmlElement(name = "to_floor")
	public String getToFloor() {
		return toFloor;
	}
	public void setToFloor(String toFloor) {
		this.toFloor = toFloor;
	}
	
	
	public void add(Image image){
		vc.add(image);
	}
	@XmlElement(name = "image")
	public List<Image> getVc() {
		return vc;
	}
	public void setVc(List<Image> vc) {
		this.vc = vc;
	}
	
}
